/**
 * 
 */
package com.ap.core.domain;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.TypeDef;

/**
 * @author Dilip.Sridhar
 *
 */
@Entity
@Table(name = "MESSAGE_BUSINESS_RULE_LIST")
@AttributeOverrides({
	@AttributeOverride(name = "messageTypeCode", column = @Column(name="MESSAGE_TYPE_CODE")),
	@AttributeOverride(name = "internalBusinessErrorCode",	column = @Column(name="INT_BUSINESS_ERROR_CODE"))
	})
@TypeDef(name = "id", typeClass = MessageBusinessRuleDetailsId.class)
public class MessageBusinessRuleDetails extends Identifiable<MessageBusinessRuleDetailsId> {
	
	private static final long serialVersionUID = 7518084306091590283L;
	
	@Column(name = "RULE_DESCRIPTION")
	private String ruleDescription;
	
	@Column(name = "INT_BUSINESS_ERROR_DESCRIPTION")
	private String internalBusinessErrorDescription;
	
	@Column(name = "VALIDATION_CLASS")
	private String validationClass;
	
	@Column(name = "EXT_ERROR_CODE")
	private String externalBusinessErrorCode;
	
	@Column(name = "EXT_ERROR_DESCRIPTION")
	private String externalBusinessErrorDescription;
	
	private MessageBusinessRuleDetails() {}

	/**
	 * @return the ruleDescription
	 */
	public String getRuleDescription() {
		return ruleDescription;
	}

	/**
	 * @return the internalBusinessErrorDescription
	 */
	public String getInternalBusinessErrorDescription() {
		return internalBusinessErrorDescription;
	}

	/**
	 * @return the validationClass
	 */
	public String getValidationClass() {
		return validationClass;
	}

	/**
	 * @return the externalBusinessErrorCode
	 */
	public String getExternalBusinessErrorCode() {
		return externalBusinessErrorCode;
	}

	/**
	 * @return the externalBusinessErrorDescription
	 */
	public String getExternalBusinessErrorDescription() {
		return externalBusinessErrorDescription;
	}

}
